<UserControl x:Uid="m_Crl" x:Class="Adastra.RichEditorLibrary.RichTextEditor"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:custom="clr-namespace:Adastra.RichEditorLibrary"
    xmlns:controls="clr-namespace:Microsoft.WPFControlsLibrary;assembly=WPFControlsLibrary"
    xmlns:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"                   
    xmlns:local="clr-namespace:Adastra.RichEditorLibrary"
    xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Royale"
    xmlns:sys="clr-namespace:System;assembly=mscorlib" 
             xmlns:properties="clr-namespace:Adastra.RichEditorLibrary.Properties"
    Name="m_Crl">

    <UserControl.Resources>
        <ResourceDictionary x:Uid="ResourceDictionary_1">
            <ResourceDictionary.MergedDictionaries>
                <!--ResourceDictionary Source="..\Resources\Styles\MainViewStyles.xaml"/-->
            </ResourceDictionary.MergedDictionaries>

            <local:ColorToBrushConverter x:Uid="local:ColorToBrushConverter_1" x:Key="ColBrushConv" />
            <!-- Brushes -->
            <SolidColorBrush x:Uid="SolidColorBrush_1" x:Key="DisabledForegroundBrush" Color="#888" />
            <SolidColorBrush x:Uid="SolidColorBrush_2" x:Key="DisabledBackgroundBrush" Color="#EEE" />
            <SolidColorBrush x:Uid="SolidColorBrush_3" x:Key="WindowBackgroundBrush" Color="#FFF" />
            <SolidColorBrush x:Uid="SolidColorBrush_4" x:Key="SelectedBackgroundBrush" Color="#DDD" />
            <SolidColorBrush x:Uid="SolidColorBrush_5" x:Key="SolidBlack" Color="Black"/>
            <SolidColorBrush x:Uid="SolidColorBrush_6" x:Key="SolidSilver" Color="Silver"/>
            <LinearGradientBrush x:Uid="LinearGradientBrush_1" x:Key="NormalBrush" StartPoint="0,0" EndPoint="0,1">
                <GradientBrush.GradientStops>
                    <GradientStopCollection x:Uid="GradientStopCollection_1">
                        <GradientStop x:Uid="GradientStop_1" Color="#FFF" Offset="0.0"/>
                        <GradientStop x:Uid="GradientStop_2" Color="#CCC" Offset="1.0"/>
                    </GradientStopCollection>
                </GradientBrush.GradientStops>
            </LinearGradientBrush>

            <LinearGradientBrush x:Uid="LinearGradientBrush_2" x:Key="HorizontalNormalBrush" StartPoint="0,0" EndPoint="1,0">
                <GradientBrush.GradientStops>
                    <GradientStopCollection x:Uid="GradientStopCollection_2">
                        <GradientStop x:Uid="GradientStop_3" Color="#FFF" Offset="0.0"/>
                        <GradientStop x:Uid="GradientStop_4" Color="#CCC" Offset="1.0"/>
                    </GradientStopCollection>
                </GradientBrush.GradientStops>
            </LinearGradientBrush>

            <LinearGradientBrush x:Uid="LinearGradientBrush_3" x:Key="LightBrush" StartPoint="0,0" EndPoint="0,1">
                <GradientBrush.GradientStops>
                    <GradientStopCollection x:Uid="GradientStopCollection_3">
                        <GradientStop x:Uid="GradientStop_5" Color="#FFF" Offset="0.0"/>
                        <GradientStop x:Uid="GradientStop_6" Color="#EEE" Offset="1.0"/>
                    </GradientStopCollection>
                </GradientBrush.GradientStops>
            </LinearGradientBrush>

            <LinearGradientBrush x:Uid="LinearGradientBrush_4" x:Key="HorizontalLightBrush" StartPoint="0,0" EndPoint="1,0">
                <GradientBrush.GradientStops>
                    <GradientStopCollection x:Uid="GradientStopCollection_4">
                        <GradientStop x:Uid="GradientStop_7" Color="#FFF" Offset="0.0"/>
                        <GradientStop x:Uid="GradientStop_8" Color="#EEE" Offset="1.0"/>
                    </GradientStopCollection>
                </GradientBrush.GradientStops>
            </LinearGradientBrush>

            <LinearGradientBrush x:Uid="LinearGradientBrush_5" x:Key="DarkBrush" StartPoint="0,0" EndPoint="0,1">
                <GradientBrush.GradientStops>
                    <GradientStopCollection x:Uid="GradientStopCollection_5">
                        <GradientStop x:Uid="GradientStop_9" Color="#FFF" Offset="0.0"/>
                        <GradientStop x:Uid="GradientStop_10" Color="#AAA" Offset="1.0"/>
                    </GradientStopCollection>
                </GradientBrush.GradientStops>
            </LinearGradientBrush>

            <LinearGradientBrush x:Uid="LinearGradientBrush_6" x:Key="PressedBrush" StartPoint="0,0" EndPoint="0,1">
                <GradientBrush.GradientStops>
                    <GradientStopCollection x:Uid="GradientStopCollection_6">
                        <GradientStop x:Uid="GradientStop_11" Color="#BBB" Offset="0.0"/>
                        <GradientStop x:Uid="GradientStop_12" Color="#EEE" Offset="0.1"/>
                        <GradientStop x:Uid="GradientStop_13" Color="#EEE" Offset="0.9"/>
                        <GradientStop x:Uid="GradientStop_14" Color="#FFF" Offset="1.0"/>
                    </GradientStopCollection>
                </GradientBrush.GradientStops>
            </LinearGradientBrush>

            <LinearGradientBrush x:Uid="LinearGradientBrush_7" x:Key="NormalBorderBrush" StartPoint="0,0" EndPoint="0,1">
                <GradientBrush.GradientStops>
                    <GradientStopCollection x:Uid="GradientStopCollection_7">
                        <GradientStop x:Uid="GradientStop_15" Color="#CCC" Offset="0.0"/>
                        <GradientStop x:Uid="GradientStop_16" Color="#444" Offset="1.0"/>
                    </GradientStopCollection>
                </GradientBrush.GradientStops>
            </LinearGradientBrush>

            <LinearGradientBrush x:Uid="LinearGradientBrush_8" x:Key="HorizontalNormalBorderBrush" StartPoint="0,0" EndPoint="1,0">
                <GradientBrush.GradientStops>
                    <GradientStopCollection x:Uid="GradientStopCollection_8">
                        <GradientStop x:Uid="GradientStop_17" Color="#CCC" Offset="0.0"/>
                        <GradientStop x:Uid="GradientStop_18" Color="#444" Offset="1.0"/>
                    </GradientStopCollection>
                </GradientBrush.GradientStops>
            </LinearGradientBrush>

            <LinearGradientBrush x:Uid="LinearGradientBrush_9" x:Key="DefaultedBorderBrush" StartPoint="0,0" EndPoint="0,1">
                <GradientBrush.GradientStops>
                    <GradientStopCollection x:Uid="GradientStopCollection_9">
                        <GradientStop x:Uid="GradientStop_19" Color="#777" Offset="0.0"/>
                        <GradientStop x:Uid="GradientStop_20" Color="#000" Offset="1.0"/>
                    </GradientStopCollection>
                </GradientBrush.GradientStops>
            </LinearGradientBrush>

            <LinearGradientBrush x:Uid="LinearGradientBrush_10" x:Key="PressedBorderBrush" StartPoint="0,0" EndPoint="0,1">
                <GradientBrush.GradientStops>
                    <GradientStopCollection x:Uid="GradientStopCollection_10">
                        <GradientStop x:Uid="GradientStop_21" Color="#444" Offset="0.0"/>
                        <GradientStop x:Uid="GradientStop_22" Color="#888" Offset="1.0"/>
                    </GradientStopCollection>
                </GradientBrush.GradientStops>
            </LinearGradientBrush>

            <SolidColorBrush x:Uid="SolidColorBrush_7" x:Key="DisabledBorderBrush" Color="#AAA" />

            <SolidColorBrush x:Uid="SolidColorBrush_8" x:Key="SolidBorderBrush" Color="#888" />

            <SolidColorBrush x:Uid="SolidColorBrush_9" x:Key="LightBorderBrush" Color="#AAA" />

            <!-- Miscellaneous Brushes -->
            <SolidColorBrush x:Uid="SolidColorBrush_10" x:Key="GlyphBrush" Color="#444" />

            <SolidColorBrush x:Uid="SolidColorBrush_11" x:Key="LightColorBrush" Color="#DDD" />

            <ControlTemplate x:Uid="ControlTemplate_1" x:Key="ComboBoxToggleButton" TargetType="ToggleButton">
                <Grid x:Uid="Grid_1">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition x:Uid="ColumnDefinition_1" />
                        <ColumnDefinition x:Uid="ColumnDefinition_2" Width="20" />
                    </Grid.ColumnDefinitions>
                    <Border
              x:Uid="Border" x:Name="Border" 
              Grid.ColumnSpan="2"
              CornerRadius="2"
              Background="{StaticResource NormalBrush}"
              BorderBrush="{StaticResource NormalBorderBrush}"
              BorderThickness="1" />
                    <Border 
              x:Uid="Border_1" Grid.Column="0"
              CornerRadius="2,0,0,2" 
              Margin="1" 
              Background="{StaticResource WindowBackgroundBrush}" 
              BorderBrush="{StaticResource NormalBorderBrush}"
              BorderThickness="0,0,1,0" />
                    <Path 
              x:Uid="Arrow" x:Name="Arrow"
              Grid.Column="1"     
              Fill="{StaticResource GlyphBrush}"
              HorizontalAlignment="Center"
              VerticalAlignment="Center"
              Data="M 0 0 L 4 4 L 8 0 Z"/>
                </Grid>
                <ControlTemplate.Triggers>
                    <Trigger x:Uid="Trigger_1" Property="ToggleButton.IsMouseOver" Value="true">
                        <Setter x:Uid="Setter_1" TargetName="Border" Property="Background" Value="{StaticResource DarkBrush}" />
                    </Trigger>
                    <Trigger x:Uid="Trigger_2" Property="ToggleButton.IsChecked" Value="true">
                        <Setter x:Uid="Setter_2" TargetName="Border" Property="Background" Value="{StaticResource PressedBrush}" />
                    </Trigger>
                    <Trigger x:Uid="Trigger_3" Property="IsEnabled" Value="False">
                        <Setter x:Uid="Setter_3" TargetName="Border" Property="Background" Value="{StaticResource DisabledBackgroundBrush}" />
                        <Setter x:Uid="Setter_4" TargetName="Border" Property="BorderBrush" Value="{StaticResource DisabledBorderBrush}" />
                        <Setter x:Uid="Setter_5" Property="Foreground" Value="{StaticResource DisabledForegroundBrush}"/>
                        <Setter x:Uid="Setter_6" TargetName="Arrow" Property="Fill" Value="{StaticResource DisabledForegroundBrush}" />
                    </Trigger>
                </ControlTemplate.Triggers>
            </ControlTemplate>

            <Style x:Uid="Style_1" TargetType="{x:Type	Menu}">
                <Setter x:Uid="Setter_7" Property="Menu.Background">
                    <Setter.Value>
                        <LinearGradientBrush x:Uid="LinearGradientBrush_11" StartPoint="0,0" EndPoint="0,1">
                            <LinearGradientBrush.GradientStops>
                                <GradientStop x:Uid="GradientStop_23" Color="#FFFFFF"
											  Offset="0.15"/>
                                <GradientStop x:Uid="GradientStop_24" Color="#D6E7EF"
											  Offset=".4"/>
                                <GradientStop x:Uid="GradientStop_25" Color="#BDD7EF"
											  Offset=".65"/>
                                <GradientStop x:Uid="GradientStop_26" Color="#A5CBE7"
											  Offset=".65"/>
                                <GradientStop x:Uid="GradientStop_27" Color="#A5CBE7"
											  Offset=".75"/>
                                <GradientStop x:Uid="GradientStop_28" Color="#ADD3EF"
											  Offset=".75"/>
                                <GradientStop x:Uid="GradientStop_29" Color="#ADD7EF"
											  Offset="1"/>
                            </LinearGradientBrush.GradientStops>
                        </LinearGradientBrush>
                    </Setter.Value>
                </Setter>
            </Style>

            <!-- ResizeDecorator Default Template -->
            <ControlTemplate x:Uid="ControlTemplate_2" x:Key="ResizeDecoratorTemplate" TargetType="{x:Type Control}">
                <Grid x:Uid="Grid_2" Opacity="0.7" SnapsToDevicePixels="true">
                    <local:ResizeThumb x:Uid="local:ResizeThumb_1" Height="3" Cursor="SizeNS" Margin="0 -4 0 0"
                     VerticalAlignment="Top" HorizontalAlignment="Stretch"/>
                    <local:ResizeThumb x:Uid="local:ResizeThumb_2" Width="3" Cursor="SizeWE" Margin="-4 0 0 0"
                     VerticalAlignment="Stretch" HorizontalAlignment="Left"/>
                    <local:ResizeThumb x:Uid="local:ResizeThumb_3" Width="3" Cursor="SizeWE" Margin="0 0 -4 0"
                     VerticalAlignment="Stretch" HorizontalAlignment="Right"/>
                    <local:ResizeThumb x:Uid="local:ResizeThumb_4" Height="3" Cursor="SizeNS" Margin="0 0 0 -4"
                     VerticalAlignment="Bottom" HorizontalAlignment="Stretch"/>
                    <local:ResizeThumb x:Uid="local:ResizeThumb_5" Width="7" Height="7" Cursor="SizeNWSE" Margin="-6 -6 0 0"
                     VerticalAlignment="Top" HorizontalAlignment="Left"/>
                    <local:ResizeThumb x:Uid="local:ResizeThumb_6" Width="7" Height="7" Cursor="SizeNESW" Margin="0 -6 -6 0"
                     VerticalAlignment="Top" HorizontalAlignment="Right"/>
                    <local:ResizeThumb x:Uid="local:ResizeThumb_7" Width="7" Height="7" Cursor="SizeNESW" Margin="-6 0 0 -6"
                     VerticalAlignment="Bottom" HorizontalAlignment="Left"/>
                    <local:ResizeThumb x:Uid="local:ResizeThumb_8" Width="7" Height="7" Cursor="SizeNWSE" Margin="0 0 -6 -6"
                     VerticalAlignment="Bottom" HorizontalAlignment="Right"/>
                </Grid>
            </ControlTemplate>
            
            <!-- Context menu -->
            <ContextMenu x:Uid="ContextMenu_1" x:Key="RTEditorContextMenu" Language="cs-CZ">
                <MenuItem x:Uid="MenuItem_1" Header="Vystřihnout" Command="{x:Static ApplicationCommands.Cut}">
                    <MenuItem.Icon>
                        <Image x:Uid="Image_1" Source="Resources\Cut.png" Width="16"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem x:Uid="MenuItem_2" Header="Kopie" Command="{x:Static ApplicationCommands.Copy}">
                    <MenuItem.Icon>
                        <Image x:Uid="Image_2" Source="Resources\Copy.png" Width="16"/>
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem x:Uid="MenuItem_3" Header="Vložit" Command="{x:Static ApplicationCommands.Paste}">
                    <MenuItem.Icon>
                        <Image x:Uid="Image_3" Source="Resources\editpaste.png" Width="16"/>
                    </MenuItem.Icon>
                </MenuItem>
                <Separator x:Uid="Separator_1"/>
                <!--MenuItem Header="Tisk" Command="{x:Static custom:RichTextEditor.PrintCommand}">
                    <MenuItem.Icon>
                        <Image Source="Resources\Print.png" Width="16"/>
                    </MenuItem.Icon>
                </MenuItem>
                <Separator/-->
                <MenuItem x:Uid="MenuItem_4" Header="Vlastnosti" Command="{x:Static local:MiscCommands.PropertiesCommand}">
                    <MenuItem.Icon>
                        <Image x:Uid="Image_4" Source="Resources\properties.png" Width="16"/>
                    </MenuItem.Icon>
                </MenuItem>

                <!--MenuItem Header="Insert picture" Command="{x:Static local:PictureCommands.InsertPictureCommand}">
                    <MenuItem.Icon>
                        <Image Source="Resources\properties.png" Width="16"/>
                    </MenuItem.Icon>
                </MenuItem-->
            </ContextMenu>
        </ResourceDictionary>
    </UserControl.Resources>

    <!--UserControl.CommandBindings>

        <CommandBinding Command="views:AcmUICommands.SendCommand"
                        />
    </UserControl.CommandBindings-->

    <Grid x:Uid="Grid_3">
        <DockPanel x:Uid="DockPanel_1">
           
                <!-- ################ RIBON START ################ -->
            <r:Ribbon x:Uid="m_ribbon" DockPanel.Dock="Top" Name="m_ribbon" Title="{Binding Path=DocTitle2}">
                <r:Ribbon.Resources>

                    <!-- Quick Access Toolbar Command -->
                    <r:RibbonCommand x:Uid="r:RibbonCommand_1" x:Key="SaveDocCommand"  
                                                     Executed="SaveDocCommandExecuted"
                                                     SmallImageSource="Resources\floppy.png"                                     
                                                     LargeImageSource="Resources\floppy.png"                                 
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_1_ToolTipTitle}"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_1_ToolTipDescription}" />
                    <r:RibbonCommand x:Uid="r:RibbonCommand_2" x:Key="SaveAsDocCommand"  
                                                     Executed="SaveAsDocCommandExecuted"
                                                     SmallImageSource="Resources\floppy_multiple.png"                                     
                                                     LargeImageSource="Resources\floppy_multiple.png"                                 
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_1_ToolTipTitle}"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_2_ToolTipDescription}" />
                    <r:RibbonCommand x:Uid="r:RibbonCommand_3" x:Key="OpenDocCommand"
                                                     Executed="OpenDocCommandExecuted"
                                                     SmallImageSource="Resources\folder.png"                                     
                                                     LargeImageSource="Resources\folder.png"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_3_ToolTipTitle}"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_3_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_4" x:Key="NewDocCommand"
                                                     Executed="NewDocCommandExecuted"
                                                     SmallImageSource="Resources\page_white.png"                                     
                                                     LargeImageSource="Resources\page_white.png"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_4_ToolTipTitle}"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_4_ToolTipDescription}" />
                    
                    <r:RibbonCommand x:Uid="r:RibbonCommand_5" x:Key="UndoCommand"
                                                     Executed="UndoCommandExecuted"
                                                     SmallImageSource="Resources\undo.png"                                     
                                                     LargeImageSource="Resources\undo.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_5_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_5_ToolTipTitle}"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_5_ToolTipDescription}" />
                    <r:RibbonCommand x:Uid="r:RibbonCommand_6" x:Key="RedoCommand"
                                                 Executed="RedoCommandExecuted"
                                                 SmallImageSource="Resources\redo.png"                                     
                                                 LargeImageSource="Resources\redo.png"
                                                 LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_6_LabelTitle}"
                                                 ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_6_ToolTipTitle}"
                                                 ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_6_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_7" x:Key="PrintCommand"
                                                 Executed="PrintCommandExecuted"
                                                 SmallImageSource="Resources\printer.png"                                     
                                                 LargeImageSource="Resources\printer.png"
                                                 LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_7_LabelTitle}"
                                                 ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_7_ToolTipTitle}"
                                                 ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_7_ToolTipDescription}" />
                    
                    <r:RibbonCommand x:Uid="r:RibbonCommand_8" x:Key="FontColorCommand"
                                                 Executed="FontColorCommandExecuted" 
                                                 SmallImageSource="Resources\highlight.png"                                     
                                                 LargeImageSource="Resources\highlight.png"
                                                 LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_8_LabelTitle}"
                                                 ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_8_ToolTipTitle}"
                                                 ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_8_ToolTipDescription}" />                    
                    
                    <r:RibbonCommand x:Uid="r:RibbonCommand_9" x:Key="FontBackgroundColorCommand"
                                                 Executed="FontBackgroundColorCommandExecuted" 
                                                 SmallImageSource="Resources\fill32.png"                                     
                                                 LargeImageSource="Resources\fill32.png"
                                                 LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_9_LabelTitle}"
                                                 ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_9_ToolTipTitle}"
                                                 ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_9_ToolTipDescription}" />                    
                    <!-- Quick Access Toolbar Command -->

                    <!-- Personal Tab -->
                    <!-- Replies Group -->
                    <r:RibbonCommand x:Uid="r:RibbonCommand_10" x:Key="PasteCommand"
                                                    Executed="PasteCommandExecuted"
                                                     SmallImageSource="Resources\editpaste.png"                                     
                                                     LargeImageSource="Resources\editpaste.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_10_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_10_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\editpaste.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_10_ToolTipDescription}" />
                    <r:RibbonCommand x:Uid="r:RibbonCommand_11" x:Key="CutCommand" 
                                                     Executed="CutCommandExecuted"
                                                     SmallImageSource="Resources\Cut.png"                                     
                                                     LargeImageSource="Resources\Cut.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_11_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_11_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\Cut.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_11_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_12" x:Key="CopyCommand" 
                                                     Executed="CopyCommandExecuted"
                                                     SmallImageSource="Resources\Copy.png"                                     
                                                     LargeImageSource="Resources\Copy.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_12_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_12_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\Copy.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_12_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_13" x:Key="InsertTableCommand" 
                                                     Executed="InsertTableCommandExecuted"
                                                     SmallImageSource="Resources\table.png"                                     
                                                     LargeImageSource="Resources\table.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_10_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_10_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\table.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_13_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_14" x:Key="InsertLineCommand" 
                                                     Executed="InsertLineCommandExecuted"
                                                     SmallImageSource="Resources\signatureline.png"                                     
                                                     LargeImageSource="Resources\signatureline.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_14_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_14_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\signatureline.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_14_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_15" x:Key="BoldCommand" 
                                                     Executed="BoldCommandExecuted"
                                                     SmallImageSource="Resources\CharacterBold.png"                                     
                                                     LargeImageSource="Resources\CharacterBold.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_15_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_15_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\CharacterBold.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_15_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_16" x:Key="ItalicCommand" 
                                                     Executed="ItalicCommandExecuted"
                                                     SmallImageSource="Resources\CharacterItalic.png"                                     
                                                     LargeImageSource="Resources\CharacterItalic.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_16_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_16_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\CharacterItalic.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_16_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_17" x:Key="UnderlineCommand" 
                                                     Executed="UnderlineCommandExecuted"
                                                     SmallImageSource="Resources\CharacterUnderline.png"                                     
                                                     LargeImageSource="Resources\CharacterUnderline.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_17_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_17_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\CharacterUnderline.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_17_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_18" x:Key="SpellCheckCommand" 
                                                     Executed="SpellCheckCommandExecuted"
                                                     SmallImageSource="Resources\spellcheck.png"                                     
                                                     LargeImageSource="Resources\spellcheck.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_18_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_18_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\spellcheck.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_18_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_19" x:Key="NumberingCommand" 
                                                     Executed="NumberingCommandExecuted"
                                                     SmallImageSource="Resources\text_list_numbers.png"                                     
                                                     LargeImageSource="Resources\text_list_numbers.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_19_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_19_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\text_list_numbers.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_19_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_20" x:Key="BulletsCommand" 
                                                     Executed="BulletsCommandExecuted"
                                                     SmallImageSource="Resources\text_list_bullets.png"                                     
                                                     LargeImageSource="Resources\text_list_bullets.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_20_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_20_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\text_list_bullets.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_20_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_21" x:Key="DecreaseCommand" 
                                                     Executed="DecreaseCommandExecuted"
                                                     SmallImageSource="Resources\text_indent_remove.png"                                     
                                                     LargeImageSource="Resources\text_indent_remove.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_21_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_21_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\text_indent_remove.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_21_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_22" x:Key="IncreaseCommand" 
                                                     Executed="IncreaseCommandExecuted"
                                                     SmallImageSource="Resources\text_indent.png"                                     
                                                     LargeImageSource="Resources\text_indent.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_20_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_20_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\text_indent.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_22_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_23" x:Key="LeftCommand" 
                                                     Executed="LeftCommandExecuted"
                                                     SmallImageSource="Resources\text_align_left.png"                                     
                                                     LargeImageSource="Resources\text_align_left.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_23_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_23_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\text_align_left.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_23_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_24" x:Key="RightCommand" 
                                                     Executed="RightCommandExecuted"
                                                     SmallImageSource="Resources\text_align_right.png"                                     
                                                     LargeImageSource="Resources\text_align_right.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_24_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_24_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\text_align_right.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_24_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_25" x:Key="CenterCommand" 
                                                     Executed="CenterCommandExecuted"
                                                     SmallImageSource="Resources\text_align_center.png"                                     
                                                     LargeImageSource="Resources\text_align_center.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_25_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_25_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\text_align_center.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_25_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_26" x:Key="JustifyCommand" 
                                                     Executed="JustifyCommandExecuted"
                                                     SmallImageSource="Resources\text_align_justify.png"                                     
                                                     LargeImageSource="Resources\text_align_justify.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_26_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_26_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\text_align_justify.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_26_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_27" x:Key="InsertRowDownCommand" 
                                                     Executed="InsertRowDownCommandExecuted"
                                                     SmallImageSource="Resources\table_row_insert_down.png"                                     
                                                     LargeImageSource="Resources\table_row_insert_down.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_27_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_27_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\table_row_insert_down.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_27_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_28" x:Key="InsertRowUpCommand" 
                                                     Executed="InsertRowUpCommandExecuted"
                                                     SmallImageSource="Resources\table_row_insert_up.png"                                     
                                                     LargeImageSource="Resources\table_row_insert_up.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_28_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_28_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\table_row_insert_up.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_28_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_29" x:Key="InsertColumnLeftCommand" 
                                                     Executed="InsertColumnLeftCommandExecuted"
                                                     SmallImageSource="Resources\table_col_insert_left.png"                                     
                                                     LargeImageSource="Resources\table_col_insert_left.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_29_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_29_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\table_col_insert_left.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_29_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_30" x:Key="InsertColumnRightCommand" 
                                                     Executed="InsertColumnRightCommandExecuted"
                                                     SmallImageSource="Resources\table_col_insert_rigt.png"                                     
                                                     LargeImageSource="Resources\table_col_insert_rigt.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_30_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_30_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\table_col_insert_rigt.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_30_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_31" x:Key="DelRowCommand" 
                                                     Executed="DelRowCommandExecuted"
                                                     SmallImageSource="Resources\table_row_delete.png"                                     
                                                     LargeImageSource="Resources\table_row_delete.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_31_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_31_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\table_row_delete.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_31_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_32" x:Key="DelColCommand" 
                                                     Executed="DelColCommandExecuted"
                                                     SmallImageSource="Resources\table_col_delete.png"                                     
                                                     LargeImageSource="Resources\table_col_delete.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_32_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_32_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\table_col_delete.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_32_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_33" x:Key="DelTableCommand" 
                                                     Executed="DelTableCommandExecuted"
                                                     SmallImageSource="Resources\table_delete.png"                                     
                                                     LargeImageSource="Resources\table_delete.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_33_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_33_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\table_delete.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_33_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_34" x:Key="InsertPictureCommand" 
                                                     Executed="InsertPictureCommandExecuted"
                                                     
                                                     SmallImageSource="Resources\InsertImage.png"                                     
                                                     LargeImageSource="Resources\InsertImage.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_34_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_34_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\InsertImage.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_34_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_35" x:Key="InsertHyperlinkCommand" 
                                                     Executed="InsertHyperlinkCommandExecuted"
                                                     SmallImageSource="Resources\InsertHyperlink.png"                                     
                                                     LargeImageSource="Resources\InsertHyperlink.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_35_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_35_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\InsertHyperlink.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_35_ToolTipDescription}" />

                    <r:RibbonCommand x:Uid="r:RibbonCommand_36" x:Key="InsertActiveTextCommand" 
                                                     Executed="InsertActiveTextCommandExecuted"
                                                     SmallImageSource="Resources\vcard.png"                                     
                                                     LargeImageSource="Resources\vcard.png"
                                                     LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_36_LabelTitle}"
                                                     ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_36_ToolTipTitle}"
                                                     ToolTipImageSource="Resources\vcard_big.png"
                                                     ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_36_ToolTipDescription}" />


                    <!-- Application Menu 
                    <r:RibbonCommand x:Key="TweetyApplicationMenu"                                     
                                                     SmallImageSource="Resources\OfficeV2_48x48.png"
                                                     LargeImageSource="Resources\OfficeV2_48x48.png"
                                                     LabelTitle="Tweety"
                                                     ToolTipImageSource="Resources\OfficeV2_48x48.png"
                                                     ToolTipTitle="Tweety"
                                                     ToolTipDescription="Yet another twitter client" />-->
                    <!-- Application Menu -->

                    <!-- Layout Definitions -->
                    <r:RibbonGroupSizeDefinitionCollection x:Uid="r:RibbonGroupSizeDefinitionCollection_1" x:Key="RibbonLayoutClipboard">
                        <r:RibbonGroupSizeDefinition x:Uid="r:RibbonGroupSizeDefinition_1">
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_1" ImageSize="Large" IsLabelVisible="True"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_2" ImageSize="Small" IsLabelVisible="True"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_3" ImageSize="Small" IsLabelVisible="True"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_4" ImageSize="Small" IsLabelVisible="True"/>
                        </r:RibbonGroupSizeDefinition>
                        <r:RibbonGroupSizeDefinition x:Uid="r:RibbonGroupSizeDefinition_2" IsCollapsed="True" />
                    </r:RibbonGroupSizeDefinitionCollection>

                    <r:RibbonGroupSizeDefinitionCollection x:Uid="r:RibbonGroupSizeDefinitionCollection_2" x:Key="RibbonLayoutFont">
                        <r:RibbonGroupSizeDefinition x:Uid="r:RibbonGroupSizeDefinition_3">
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_5" ImageSize="Large" IsLabelVisible="True"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_6" ImageSize="Large" IsLabelVisible="True"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_7" ImageSize="Small" IsLabelVisible="False"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_8" ImageSize="Small" IsLabelVisible="False"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_9" ImageSize="Small" IsLabelVisible="False"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_10" ImageSize="Small" IsLabelVisible="False"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_11" ImageSize="Small" IsLabelVisible="False"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_12" ImageSize="Small" IsLabelVisible="False"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_13" ImageSize="Small" IsLabelVisible="False"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_14" ImageSize="Small" IsLabelVisible="False"/>
                        </r:RibbonGroupSizeDefinition>
                        <r:RibbonGroupSizeDefinition x:Uid="r:RibbonGroupSizeDefinition_4" IsCollapsed="True" />
                    </r:RibbonGroupSizeDefinitionCollection>

                    <r:RibbonGroupSizeDefinitionCollection x:Uid="r:RibbonGroupSizeDefinitionCollection_3" x:Key="RibbonLayoutParagrapg">
                        <r:RibbonGroupSizeDefinition x:Uid="r:RibbonGroupSizeDefinition_5">
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_15" ImageSize="Small" IsLabelVisible="True"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_16" ImageSize="Small" IsLabelVisible="True"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_17" ImageSize="Small" IsLabelVisible="True"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_18" ImageSize="Small" IsLabelVisible="True"/>
                        </r:RibbonGroupSizeDefinition>
                        <r:RibbonGroupSizeDefinition x:Uid="r:RibbonGroupSizeDefinition_6" IsCollapsed="True" />
                    </r:RibbonGroupSizeDefinitionCollection>

                    <r:RibbonGroupSizeDefinitionCollection x:Uid="r:RibbonGroupSizeDefinitionCollection_4" x:Key="RibbonLayoutInsert">
                        <r:RibbonGroupSizeDefinition x:Uid="r:RibbonGroupSizeDefinition_7">
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_19" ImageSize="Large" IsLabelVisible="True"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_20" ImageSize="Large" IsLabelVisible="True"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_21" ImageSize="Large" IsLabelVisible="True"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_22" ImageSize="Small" IsLabelVisible="True"/>
                        </r:RibbonGroupSizeDefinition>
                        <r:RibbonGroupSizeDefinition x:Uid="r:RibbonGroupSizeDefinition_8" IsCollapsed="True" />
                    </r:RibbonGroupSizeDefinitionCollection>

                    <r:RibbonGroupSizeDefinitionCollection x:Uid="r:RibbonGroupSizeDefinitionCollection_5" x:Key="RibbonLayoutTable">
                        <r:RibbonGroupSizeDefinition x:Uid="r:RibbonGroupSizeDefinition_9">
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_23" ImageSize="Large" IsLabelVisible="True"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_24" ImageSize="Small" IsLabelVisible="True"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_25" ImageSize="Small" IsLabelVisible="True"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_26" ImageSize="Small" IsLabelVisible="True"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_27" ImageSize="Small" IsLabelVisible="True"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_28" ImageSize="Small" IsLabelVisible="True"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_29" ImageSize="Small" IsLabelVisible="True"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_30" ImageSize="Small" IsLabelVisible="True"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_31" ImageSize="Small" IsLabelVisible="True"/>
                            <r:RibbonControlSizeDefinition x:Uid="r:RibbonControlSizeDefinition_32" ImageSize="Small" IsLabelVisible="True"/>
                        </r:RibbonGroupSizeDefinition>
                        <r:RibbonGroupSizeDefinition x:Uid="r:RibbonGroupSizeDefinition_10" IsCollapsed="True" />
                    </r:RibbonGroupSizeDefinitionCollection>
                    <!-- Layout Definitions -->

                </r:Ribbon.Resources>

                <!-- Building Ribbon starts here with the Application Menu -->
                <r:Ribbon.ApplicationMenu>
                    <r:RibbonApplicationMenu x:Uid="r:RibbonApplicationMenu_1">
                        
                        <r:RibbonApplicationMenu.Command>
                            <r:RibbonCommand  x:Uid="r:RibbonCommand_37" Executed="NullRibonCommand"
                                                LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_37_LabelTitle}"
                                                LabelDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_37_LabelDescription}"
                                                SmallImageSource="Resources\Word_32x32.png"
                                                LargeImageSource="Resources\Word_32x32.png"
                                                ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_37_ToolTipTitle}"
                                                ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_37_ToolTipDescription}" />
                        </r:RibbonApplicationMenu.Command>
                        

                        
                        <r:RibbonApplicationMenuItem  x:Uid="m_rbmnThemes" Name="m_rbmnThemes">
                            
                            <r:RibbonApplicationMenuItem.Command>
                                <r:RibbonCommand 
                                                    x:Uid="r:RibbonCommand_38" LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_38_LabelTitle}" 
                                                    LabelDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_38_LabelDescription}"
                                                    Executed="NullRibonCommand"
                                                    LargeImageSource="Resources\windows.png"/>
                            </r:RibbonApplicationMenuItem.Command>

                            
                            <r:RibbonApplicationSplitMenuItem x:Uid="m_rbmn2007Black" Name="m_rbmn2007Black" >
                                <r:RibbonApplicationSplitMenuItem.Command>
                                    <r:RibbonCommand
                                                        x:Uid="r:RibbonCommand_39" LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_39_LabelTitle}" 
                                                        LabelDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_39_LabelDescription}"
                                                        Executed="Mn2007BlackCommandExecuted"
                                                        LargeImageSource="Resources\black.png"
                                                        ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_39_ToolTipTitle}"
                                                        ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_39_ToolTipDescription}"/>
                                </r:RibbonApplicationSplitMenuItem.Command>
                            </r:RibbonApplicationSplitMenuItem>
                            <r:RibbonApplicationSplitMenuItem x:Uid="m_rbmn2007Blue" Name="m_rbmn2007Blue" >
                                <r:RibbonApplicationSplitMenuItem.Command>
                                    <r:RibbonCommand
                                                                    x:Uid="r:RibbonCommand_40" LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_40_LabelTitle}" 
                                                                    LabelDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_39_LabelDescription}"
                                                                    Executed="Mn2007BlueCommandExecuted"
                                                                    LargeImageSource="Resources\blue.png"
                                                                    ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_40_ToolTipTitle}"
                                                                    ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_40_ToolTipDescription}"/>
                                </r:RibbonApplicationSplitMenuItem.Command>
                            </r:RibbonApplicationSplitMenuItem>
                            <r:RibbonApplicationSplitMenuItem x:Uid="m_rbmn2007Silver" Name="m_rbmn2007Silver"  >
                                <r:RibbonApplicationSplitMenuItem.Command>
                                    <r:RibbonCommand
                                                                    x:Uid="r:RibbonCommand_41" LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_41_LabelTitle}" 
                                                                    LabelDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_39_LabelDescription}"
                                                                    Executed="Mn2007SilverCommandExecuted"
                                                                    LargeImageSource="Resources\white.png"
                                                                    ToolTipTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_41_ToolTipTitle}"
                                                                    ToolTipDescription="{x:Static properties:Resources.RichTextEditor_RibbonCommand_41_ToolTipDescription}"/>
                                </r:RibbonApplicationSplitMenuItem.Command>
                            </r:RibbonApplicationSplitMenuItem>
                            
                        </r:RibbonApplicationMenuItem>
                        

                        
                        <r:RibbonApplicationMenuItem x:Uid="r:RibbonApplicationMenuItem_1">
                            <r:RibbonApplicationMenuItem.Command>
                                <r:RibbonCommand x:Uid="r:RibbonCommand_42"/>
                            </r:RibbonApplicationMenuItem.Command>
                        </r:RibbonApplicationMenuItem>
                        <r:RibbonApplicationMenuItem x:Uid="r:RibbonApplicationMenuItem_2">
                            <r:RibbonApplicationMenuItem.Command>
                                <r:RibbonCommand x:Uid="r:RibbonCommand_43"/>
                            </r:RibbonApplicationMenuItem.Command>
                        </r:RibbonApplicationMenuItem>
                        <r:RibbonApplicationMenuItem x:Uid="r:RibbonApplicationMenuItem_3">
                            <r:RibbonApplicationMenuItem.Command>
                                <r:RibbonCommand x:Uid="r:RibbonCommand_44"/>
                            </r:RibbonApplicationMenuItem.Command>
                        </r:RibbonApplicationMenuItem>
                         <r:RibbonApplicationMenuItem x:Uid="r:RibbonApplicationMenuItem_4">
                            <r:RibbonApplicationMenuItem.Command>
                                <r:RibbonCommand x:Uid="r:RibbonCommand_45"/>
                            </r:RibbonApplicationMenuItem.Command>
                        </r:RibbonApplicationMenuItem>
                        <r:RibbonApplicationMenuItem x:Uid="r:RibbonApplicationMenuItem_5">
                            <r:RibbonApplicationMenuItem.Command>
                                <r:RibbonCommand x:Uid="r:RibbonCommand_46"/>
                            </r:RibbonApplicationMenuItem.Command>
                        </r:RibbonApplicationMenuItem>
                       

                    </r:RibbonApplicationMenu>
                </r:Ribbon.ApplicationMenu>
               

                
                <r:Ribbon.QuickAccessToolBar>
                    <r:RibbonQuickAccessToolBar x:Uid="r:RibbonQuickAccessToolBar_1" CanUserCustomize="False">
                        <r:RibbonButton x:Uid="m_rbbtOpenDoc" Name="m_rbbtOpenDoc"  Command="{StaticResource OpenDocCommand}"  r:RibbonQuickAccessToolBar.Placement="InToolBar"/>
                        <r:RibbonButton x:Uid="m_rbbtSaveDoc" Name="m_rbbtSaveDoc" Command="{StaticResource SaveDocCommand}" Margin="10,0,0,0" r:RibbonQuickAccessToolBar.Placement="InToolBar"/>
                        <r:RibbonButton x:Uid="m_rbbtSaveAsDoc" Name="m_rbbtSaveAsDoc" Command="{StaticResource SaveAsDocCommand}" r:RibbonQuickAccessToolBar.Placement="InToolBar"/>
                        <r:RibbonButton x:Uid="m_rbbtNewDoc" Name="m_rbbtNewDoc" Command="{StaticResource NewDocCommand}" Margin="10,0,0,0" r:RibbonQuickAccessToolBar.Placement="InToolBar"/>
                        <r:RibbonButton x:Uid="m_rbbtUndo" Name="m_rbbtUndo" Command="{StaticResource UndoCommand}" Margin="10,0,0,0" r:RibbonQuickAccessToolBar.Placement="InCustomizeMenuAndToolBar"/>
                        <r:RibbonButton x:Uid="m_rbbtRedo" Name="m_rbbtRedo" Command="{StaticResource RedoCommand}" r:RibbonQuickAccessToolBar.Placement="InCustomizeMenuAndToolBar"/>
                        <r:RibbonSeparator x:Uid="r:RibbonSeparator_1"/>
                        <r:RibbonButton x:Uid="m_rbbtPrint" Name="m_rbbtPrint" Command="{StaticResource PrintCommand}" Margin="10,0,0,0" r:RibbonQuickAccessToolBar.Placement="InCustomizeMenuAndToolBar"/>
                    </r:RibbonQuickAccessToolBar>
                </r:Ribbon.QuickAccessToolBar>
                

                <!-- Main Tab -->
           
                <r:RibbonTab x:Uid="m_ribTabMain" Name="m_ribTabMain" Label="Hlavní úpravy">
                    <r:RibbonTab.Groups>
                        <!-- Clipboard Group -->
                        <r:RibbonGroup x:Uid="r:RibbonGroup_1" GroupSizeDefinitions="{StaticResource RibbonLayoutClipboard}" >
                            <r:RibbonGroup.Command>
                                <r:RibbonCommand x:Uid="r:RibbonCommand_47" LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_47_LabelTitle}"/>
                            </r:RibbonGroup.Command>
                            <r:RibbonButton x:Uid="m_rbbtPaste" Name="m_rbbtPaste" Command="{StaticResource PasteCommand}" Height="Auto" />
                            <r:RibbonButton x:Uid="m_rbbtCut" Name="m_rbbtCut" Command="{StaticResource CutCommand}"/>
                            <r:RibbonButton x:Uid="m_rbbtCopy" Name="m_rbbtCopy" Command="{StaticResource CopyCommand}"/>
                        </r:RibbonGroup>
                        <!-- Clipboard Group -->

                        <!-- Font Group -->
                        <r:RibbonGroup x:Uid="r:RibbonGroup_2" GroupSizeDefinitions="{StaticResource RibbonLayoutFont}" >
                            <r:RibbonGroup.Command>
                                <r:RibbonCommand x:Uid="r:RibbonCommand_48" LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_48_LabelTitle}"/>
                            </r:RibbonGroup.Command>
                            <local:RibbonStackPanel x:Uid="local:RibbonStackPanel_1" Orientation="Horizontal"  Margin="0,5,0,0">
                                <r:RibbonComboBox x:Uid="m_rcbxFontName" Name="m_rcbxFontName" ToolTip="Použité písmo" Width="120" IsEditable="True" 
                                              SelectedValuePath="Content" SelectionChanged="OnFontNameSelectionChanged" >
                                    <!--r:RibbonComboBoxItem>Tahoma</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem>Verdana</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem>Arial</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem>Times New Roman</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem>Courier New</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem>Courier New</r:RibbonComboBoxItem-->
                                </r:RibbonComboBox>
                                <r:RibbonComboBox x:Uid="m_rcbxFontSize" Name="m_rcbxFontSize" ToolTip="Velikost písma" Width="50" IsEditable="True"
                                              SelectedValuePath="Content" SelectionChanged="OnFontSizeSelectionChanged" >
                                    <r:RibbonComboBoxItem x:Uid="r:RibbonComboBoxItem_1">7</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem x:Uid="r:RibbonComboBoxItem_2">8</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem x:Uid="r:RibbonComboBoxItem_3">9</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem x:Uid="r:RibbonComboBoxItem_4">10</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem x:Uid="r:RibbonComboBoxItem_5">11</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem x:Uid="r:RibbonComboBoxItem_6">12</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem x:Uid="r:RibbonComboBoxItem_7">13</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem x:Uid="r:RibbonComboBoxItem_8">14</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem x:Uid="r:RibbonComboBoxItem_9">15</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem x:Uid="r:RibbonComboBoxItem_10">16</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem x:Uid="r:RibbonComboBoxItem_11">17</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem x:Uid="r:RibbonComboBoxItem_12">18</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem x:Uid="r:RibbonComboBoxItem_13">19</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem x:Uid="r:RibbonComboBoxItem_14">20</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem x:Uid="r:RibbonComboBoxItem_15">22</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem x:Uid="r:RibbonComboBoxItem_16">24</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem x:Uid="r:RibbonComboBoxItem_17">26</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem x:Uid="r:RibbonComboBoxItem_18">28</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem x:Uid="r:RibbonComboBoxItem_19">36</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem x:Uid="r:RibbonComboBoxItem_20">48</r:RibbonComboBoxItem>
                                    <r:RibbonComboBoxItem x:Uid="r:RibbonComboBoxItem_21">72</r:RibbonComboBoxItem>
                                </r:RibbonComboBox>
                            </local:RibbonStackPanel>


                            <!--local:RibbonStackPanel Orientation="Horizontal"  Margin="0,5,0,0"-->
                                <r:RibbonControlGroup x:Uid="r:RibbonControlGroup_1" Margin="0,5,0,0">
                                    <r:RibbonToggleButton x:Uid="m_rbtbBold" Name="m_rbtbBold"  Command="{StaticResource BoldCommand}"/>
                                <r:RibbonToggleButton x:Uid="m_rbtbItalic" Name="m_rbtbItalic"  Command="{StaticResource ItalicCommand}"/>
                                <r:RibbonToggleButton x:Uid="m_rbtbUnderline" Name="m_rbtbUnderline"  Command="{StaticResource UnderlineCommand}"/>

                                <r:RibbonDropDownButton x:Uid="m_rbtbFontColor" Name="m_rbtbFontColor" Command="{StaticResource FontColorCommand}" Margin="8,0,0,0">
                                    <r:RibbonGroupPanel x:Uid="r:RibbonGroupPanel_1" >
                                        <local:ColorPick x:Uid="m_colorPickerFont" x:Name="m_colorPickerFont"/>
                                    </r:RibbonGroupPanel>
                                </r:RibbonDropDownButton>

                                <r:RibbonDropDownButton x:Uid="m_rbtbFontBackgroundColor" Name="m_rbtbFontBackgroundColor" Command="{StaticResource FontBackgroundColorCommand}" Margin="8,0,0,0">
                                    <r:RibbonGroupPanel x:Uid="r:RibbonGroupPanel_2" >
                                        <local:ColorPick x:Uid="m_colorBackgroundPickerFont" x:Name="m_colorBackgroundPickerFont"/>
                                    </r:RibbonGroupPanel>

                                </r:RibbonDropDownButton>

                            </r:RibbonControlGroup>
                                
                            <!--/local:RibbonStackPanel-->


                            <r:RibbonControlGroup x:Uid="r:RibbonControlGroup_2" Margin="0,5,0,0">
                                <r:RibbonToggleButton x:Uid="m_rbtbSpellCheck" Name="m_rbtbSpellCheck" IsChecked="false"  Command="{StaticResource SpellCheckCommand}"/>
                            </r:RibbonControlGroup>
                        </r:RibbonGroup>
                        <!-- Font Group -->

                        <!-- Paragraph Group -->
                        <r:RibbonGroup x:Uid="r:RibbonGroup_3" GroupSizeDefinitions="{StaticResource RibbonLayoutParagrapg}" >
                            <r:RibbonGroup.Command>
                                <r:RibbonCommand x:Uid="r:RibbonCommand_49" LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_49_LabelTitle}"/>
                            </r:RibbonGroup.Command>
                            <local:RibbonStackPanel x:Uid="local:RibbonStackPanel_2" Orientation="Horizontal"  Margin="0,5,0,0">
                                <r:RibbonControlGroup x:Uid="r:RibbonControlGroup_3" Margin="0,5,0,0">
                                    <r:RibbonToggleButton x:Uid="m_rbtbNumbering" Name="m_rbtbNumbering" Command="{StaticResource NumberingCommand}"/>
                                    <r:RibbonToggleButton x:Uid="m_rbtbBullets" Name="m_rbtbBullets" Command="{StaticResource BulletsCommand}"/>
                                </r:RibbonControlGroup>

                                <r:RibbonControlGroup x:Uid="r:RibbonControlGroup_4" Margin="5,5,0,0">
                                    <r:RibbonButton x:Uid="m_rbbtDecrease" Name="m_rbbtDecrease" Command="{StaticResource DecreaseCommand}"/>
                                    <r:RibbonButton x:Uid="m_rbbtIncrease" Name="m_rbbtIncrease" Command="{StaticResource IncreaseCommand}"/>
                                </r:RibbonControlGroup>
                            </local:RibbonStackPanel >

                            <local:RibbonStackPanel x:Uid="local:RibbonStackPanel_3" Orientation="Horizontal"  Margin="0,5,0,0">
                                <r:RibbonControlGroup x:Uid="r:RibbonControlGroup_5" Margin="0,5,0,0" >
                                    <r:RibbonToggleButton x:Uid="m_rbtbLeft" Name="m_rbtbLeft" Command="{StaticResource LeftCommand}"/>
                                    <r:RibbonToggleButton x:Uid="m_rbtbRight" Name="m_rbtbRight" Command="{StaticResource RightCommand}"/>
                                    <r:RibbonToggleButton x:Uid="m_rbtbCenter" Name="m_rbtbCenter" Command="{StaticResource CenterCommand}"/>
                                    <r:RibbonToggleButton x:Uid="m_rbtbJustify" Name="m_rbtbJustify" Command="{StaticResource JustifyCommand}"/>
                                </r:RibbonControlGroup>

                            </local:RibbonStackPanel >
                        </r:RibbonGroup>
                        <!-- Paragraph Group -->

                        <!-- Insert Group -->
                        <r:RibbonGroup x:Uid="r:RibbonGroup_4" GroupSizeDefinitions="{StaticResource RibbonLayoutInsert}" >
                            <r:RibbonGroup.Command>
                                <r:RibbonCommand x:Uid="r:RibbonCommand_50" LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_10_LabelTitle}"/>
                            </r:RibbonGroup.Command>

                            <r:RibbonButton x:Uid="m_rbbtInsertPicture" Name="m_rbbtInsertPicture" Command="{StaticResource InsertPictureCommand}" Height="Auto"/>
                            <r:RibbonButton x:Uid="m_rbbtInsertHyperlink" Name="m_rbbtInsertHyperlink" Command="{StaticResource InsertHyperlinkCommand}" Height="Auto"/>
                            <r:RibbonButton x:Uid="m_rbbtInsertLine" Name="m_rbbtInsertLine" Command="{StaticResource InsertLineCommand}" Height="Auto"/>

                            <!--r:RibbonDropDownButton  Name="m_rbInsertActiveText"   Command="{StaticResource InsertActiveTextCommand}"/-->
                            <local:RibbonBorder x:Uid="local:RibbonBorder_1" BorderThickness="1,1,1,1" CornerRadius="10,10,10,10" Margin="2,2,2,2">
                            <local:RibbonStackPanel x:Uid="local:RibbonStackPanel_4" Margin="2,2,2,5" >
                                <r:RibbonLabel  x:Uid="r:RibbonLabel_1" Content="{x:Static properties:Resources.RichTextEditor_RibbonLabel_1_Content}" VerticalAlignment="Center" HorizontalAlignment="Center" ToolTip="Vkládání klientských dat"/>
                                <r:RibbonControlGroup x:Uid="r:RibbonControlGroup_6">
                                    <r:RibbonComboBox  x:Uid="m_rbInsertActiveText" Name="m_rbInsertActiveText" ToolTip="Vložit klientská data" Width="150" IsEditable="True" 
                                                        SelectedValuePath="Content" SelectionChanged="OnInsertActiveTextSelectionChanged" />
                                    <r:RibbonButton x:Uid="m_rbbtInsertActiveTextButt" Name="m_rbbtInsertActiveTextButt" Command="{StaticResource InsertActiveTextCommand}" Height="Auto"/>
                                </r:RibbonControlGroup>
                            </local:RibbonStackPanel>
                            </local:RibbonBorder>
                        </r:RibbonGroup>
                        <!-- Insert Group -->

                        <!-- Table Group -->
                        <r:RibbonGroup x:Uid="r:RibbonGroup_5" GroupSizeDefinitions="{StaticResource RibbonLayoutTable}" >
                            <r:RibbonGroup.Command>
                                <r:RibbonCommand x:Uid="r:RibbonCommand_51" LabelTitle="{x:Static properties:Resources.RichTextEditor_RibbonCommand_51_LabelTitle}"/>
                            </r:RibbonGroup.Command>

                            <r:RibbonButton x:Uid="m_rbbtInsertTable" Name="m_rbbtInsertTable" Command="{StaticResource InsertTableCommand}" Height="Auto"/>

                            <r:RibbonButton x:Uid="m_rbbtInsertRowDown" Name="m_rbbtInsertRowDown" Command="{StaticResource InsertRowDownCommand}"/>
                            <r:RibbonButton x:Uid="m_rbbtInsertRowUp" Name="m_rbbtInsertRowUp" Command="{StaticResource InsertRowUpCommand}"/>
                            <r:RibbonButton x:Uid="m_rbbtInsertColumnLeft" Name="m_rbbtInsertColumnLeft" Command="{StaticResource InsertColumnLeftCommand}"/>
                            <r:RibbonButton x:Uid="m_rbbtInsertColumnRight" Name="m_rbbtInsertColumnRight" Command="{StaticResource InsertColumnRightCommand}"/>

                            <r:RibbonButton x:Uid="m_rbbtDelRow" Name="m_rbbtDelRow" Command="{StaticResource DelRowCommand}"/>
                            <r:RibbonButton x:Uid="m_rbbtDelCol" Name="m_rbbtDelCol" Command="{StaticResource DelColCommand}"/>

                            <r:RibbonButton x:Uid="m_rbbtDelTable" Name="m_rbbtDelTable" Command="{StaticResource DelTableCommand}"/>

                        </r:RibbonGroup>
                        <!-- Table Group -->

                    </r:RibbonTab.Groups>
                </r:RibbonTab>
                
                <!-- Main Tab -->

                <!-- Building Tabs starts here -->
            </r:Ribbon>
                    <!-- ################ RIBON END ################ -->


            <StatusBar x:Uid="StatusBar_1" DockPanel.Dock="Bottom" >
                <StatusBarItem x:Uid="StatusBarItem_1">
                    <TextBlock x:Uid="m_StatusBarLineInfo" x:Name="m_StatusBarLineInfo"/>
                </StatusBarItem>
                <StatusBarItem x:Uid="StatusBarItem_2">
                    <Separator x:Uid="Separator_2"/>
                </StatusBarItem>
                <StatusBarItem x:Uid="StatusBarItem_3">
                    <TextBlock x:Uid="m_StatusBarMessage" x:Name="m_StatusBarMessage"/>
                </StatusBarItem>
            </StatusBar>
            <!--FlowDocumentPageViewer Grid.Row="1"  Name="m_flowDocumentScrollViewer" HorizontalScrollBarVisibility="Visible"
                                    BorderThickness="0"   Height="Auto" Width="Auto">
                <FlowDocument xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
                    <Paragraph-->
            <RichTextBox x:Uid="m_RTB" x:Name="m_RTB" DockPanel.Dock="Bottom" ContextMenu="{StaticResource RTEditorContextMenu}"
									 AcceptsTab="True" AcceptsReturn="True"
									 HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Visible"
									 SpellCheck.IsEnabled="True" Visibility="Visible">
                <RichTextBox.Resources>
                    <Style x:Uid="Style_2" TargetType="{x:Type Paragraph}">
                        <Setter x:Uid="Setter_8" Property="Margin" Value="0"/>
                    </Style>
                </RichTextBox.Resources>
            </RichTextBox>
            <!--/Paragraph>
                </FlowDocument>
            </FlowDocumentPageViewer-->
        </DockPanel>
    </Grid>
</UserControl>
